
const useDebounce = (fn, delay, args) => {
    useEffect(() => {
        const timer = settimeout(fn.bind(null, args), delay)
        return () => {
            clearTimeout(timer)
        }
    }, args)
}